package com.cn.stepLock.listener;

import com.cn.stepLock.chain.ChainHelper;
import com.cn.stepLock.event.BaseEvent;

import java.util.EventListener;

import static com.cn.stepLock.chain.ChainEventApplication.getListenerName;

/**
 * @author Aaron
 * @desc
 * @createTime 2022-02-24 5:44
 * @since
 */
public class BaseListener implements EventListener {

    ChainHelper chainHelper;

    String name;

    public BaseListener(ChainHelper chainHelper) {
        this.chainHelper = chainHelper;
        this.name = getListenerName(this.getClass());
    }

    public void handleEvent(BaseEvent eventObject){

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
